package com.example.entity.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.example.utils.*;
import com.example.enums.*;

import java.util.Date;
import java.math.BigDecimal;
import java.io.Serializable;
/**
 * @Description:测试表
 * 
 * @Date:2024/07/12
 */
public class Test implements Serializable {

	/**
	 * id
	 */
	private Integer id;

	/**
	 * 
	 */
	private Integer columnName;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createTime;

	/**
	 * 昵称
	 */
	private String nikName;

	/**
	 * 价格
	 */
	private BigDecimal price;

	/**
	 * 
	 */
	private Integer userId;

	public Integer getId() {
		return id;
	}
	public void  setId(Integer id) {
		this.id = id;
	}
	public Integer getColumnName() {
		return columnName;
	}
	public void  setColumnName(Integer columnName) {
		this.columnName = columnName;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void  setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getNikName() {
		return nikName;
	}
	public void  setNikName(String nikName) {
		this.nikName = nikName;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void  setPrice(BigDecimal price) {
		this.price = price;
	}
	public Integer getUserId() {
		return userId;
	}
	public void  setUserId(Integer userId) {
		this.userId = userId;
	}
	@Override
	public String toString() {
		return "id:"+(id == null ? "空" : id)+", :"+(columnName == null ? "空" : columnName)+", 创建时间:"+(createTime == null ? "空" : DateUtil.format(createTime, DateTimePatternEnum.YYYY_MM_DD.getPattern()))+", 昵称:"+(nikName == null ? "空" : nikName)+", 价格:"+(price == null ? "空" : price)+", :"+(userId == null ? "空" : userId);
	}
}